import R from "ramda";
import { createSSE, sendSSE } from "./connect";
class Chat {
  constructor(option) {
    this.user_id = R.prop("user_id", option);
    this.user_avatar = R.prop("user_avatar", option);
    this.user_name = R.prop("user_name", option);
    this.room_id = R.prop("room_id", option);
  }
  message;
  send(message, handler) {
    return handler(message);
  }
  receive(onSuccess, onError) {
    new Promise((resolve, reject) => {});
  }
  stopMessage() {}
}
